/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.dto;

import java.io.Serializable;

/**
 *
 * @author thanhluan
 */
public class TourDTO implements Serializable {

    private int tourId;
    private String tourName;
    private int typeId;
    private String introduction;
    private String departure;
    private String destination;
    private int duration;
    private byte isDelete;
    private TourDetailDTO tourDetailDTO;
    private TourServiceDTO tourServiceDTO;
    private TourPriceDTO tourPriceDTO;
    private LocationDTO locationDTO;
    private SchedulesDTO schedulesDTO;
    private TourTypeDTO tourTypeDTO;
    private float min;
    private float max;
    private  float minP;
    private float maxP;

    public TourDTO() {
    }

    public TourDTO(int tourId, String tourName, int typeId, String introduction, String departure, String destination, int duration, byte isDelete) {
        this.tourId = tourId;
        this.tourName = tourName;
        this.typeId = typeId;
        this.introduction = introduction;
        this.departure = departure;
        this.destination = destination;
        this.duration = duration;
        this.isDelete = isDelete;
    }

    /**
     * @return the tourId
     */
    public int getTourId() {
        return tourId;
    }

    /**
     * @param tourId the tourId to set
     */
    public void setTourId(int tourId) {
        this.tourId = tourId;
    }

    /**
     * @return the tourName
     */
    public String getTourName() {
        return tourName;
    }

    /**
     * @param tourName the tourName to set
     */
    public void setTourName(String tourName) {
        this.tourName = tourName;
    }

    /**
     * @return the typeId
     */
    public int getTypeId() {
        return typeId;
    }

    /**
     * @param typeId the typeId to set
     */
    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    /**
     * @return the introduction
     */
    public String getIntroduction() {
        return introduction;
    }

    /**
     * @param introduction the introduction to set
     */
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    /**
     * @return the departure
     */
    public String getDeparture() {
        return departure;
    }

    /**
     * @param departure the departure to set
     */
    public void setDeparture(String departure) {
        this.departure = departure;
    }

    /**
     * @return the destination
     */
    public String getDestination() {
        return destination;
    }

    /**
     * @param destination the destination to set
     */
    public void setDestination(String destination) {
        this.destination = destination;
    }

    /**
     * @return the duration
     */
    public int getDuration() {
        return duration;
    }

    /**
     * @param duration the duration to set
     */
    public void setDuration(int duration) {
        this.duration = duration;
    }

    /**
     * @return the isDelete
     */
    public byte getIsDelete() {
        return isDelete;
    }

    /**
     * @param isDelete the isDelete to set
     */
    public void setIsDelete(byte isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * @return the tourDetailDTO
     */
    public TourDetailDTO getTourDetailDTO() {
        return tourDetailDTO;
    }

    /**
     * @param tourDetailDTO the tourDetailDTO to set
     */
    public void setTourDetailDTO(TourDetailDTO tourDetailDTO) {
        this.tourDetailDTO = tourDetailDTO;
    }

    /**
     * @return the tourServiceDTO
     */
    public TourServiceDTO getTourServiceDTO() {
        return tourServiceDTO;
    }

    /**
     * @param tourServiceDTO the tourServiceDTO to set
     */
    public void setTourServiceDTO(TourServiceDTO tourServiceDTO) {
        this.tourServiceDTO = tourServiceDTO;
    }

    /**
     * @return the tourPriceDTO
     */
    public TourPriceDTO getTourPriceDTO() {
        return tourPriceDTO;
    }

    /**
     * @param tourPriceDTO the tourPriceDTO to set
     */
    public void setTourPriceDTO(TourPriceDTO tourPriceDTO) {
        this.tourPriceDTO = tourPriceDTO;
    }

    /**
     * @return the locationDTO
     */
    public LocationDTO getLocationDTO() {
        return locationDTO;
    }

    /**
     * @param locationDTO the locationDTO to set
     */
    public void setLocationDTO(LocationDTO locationDTO) {
        this.locationDTO = locationDTO;
    }

    /**
     * @return the schedulesDTO
     */
    public SchedulesDTO getSchedulesDTO() {
        return schedulesDTO;
    }

    /**
     * @param schedulesDTO the schedulesDTO to set
     */
    public void setSchedulesDTO(SchedulesDTO schedulesDTO) {
        this.schedulesDTO = schedulesDTO;
    }

    /**
     * @return the tourTypeDTO
     */
    public TourTypeDTO getTourTypeDTO() {
        return tourTypeDTO;
    }

    /**
     * @param tourTypeDTO the tourTypeDTO to set
     */
    public void setTourTypeDTO(TourTypeDTO tourTypeDTO) {
        this.tourTypeDTO = tourTypeDTO;
    }



    @Override
    public int hashCode() {
        int hash = 3;
        hash = 61 * hash + this.tourId;
        return hash;
    }

    /**
     * @return the min
     */
    public float getMin() {
        return min;
    }

    /**
     * @param min the min to set
     */
    public void setMin(float min) {
        this.min = min;
    }

    /**
     * @return the max
     */
    public float getMax() {
        return max;
    }

    /**
     * @param max the max to set
     */
    public void setMax(float max) {
        this.max = max;
    }

    /**
     * @return the minP
     */
    public float getMinP() {
        return minP;
    }

    /**
     * @param minP the minP to set
     */
    public void setMinP(float minP) {
        this.minP = minP;
    }

    /**
     * @return the maxP
     */
    public float getMaxP() {
        return maxP;
    }

    /**
     * @param maxP the maxP to set
     */
    public void setMaxP(float maxP) {
        this.maxP = maxP;
    }
}
